package com.aliyun.messagemgt.converter;

import com.aliyun.messagemgt.common.dto.send.PushChannelInfo;
import com.aliyun.messagemgt.dto.PushChannelAdd;
import com.aliyun.messagemgt.dto.PushChannelList;
import com.aliyun.messagemgt.entities.PushChannelEntity;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @ClassName: PushChannelConverter
 * @Description:
 * @Author: wugongzi
 * @Date: 2021/9/13 19:19
 * @Version: 1.0
 */
@Mapper
public interface PushChannelConverter {
    PushChannelConverter INSTANCE = Mappers.getMapper(PushChannelConverter.class);

    List<PushChannelList> pushChannelEntityList2pushChannelList(List<PushChannelEntity> pushChannelEntityList);

    PushChannelList pushChannelEntity2pushChannelList(PushChannelEntity pushChannelEntity);

    PushChannelInfo pushChannelAdd2pushChannelInfo(PushChannelAdd pushChannelAdd);
}
